#ifndef GLKINECTVIEW_H
#define GLKINECTVIEW_H

#include <QGLWidget>
#include <opencv2/core/core.hpp>

using namespace cv;
class GLKinectView : public QGLWidget
{
Q_OBJECT
public:
    explicit GLKinectView(QWidget *parent = 0);

signals:

public slots:
     void reciveFrame(Mat rgb,Mat depth);
protected:
     void initializeGL();
     void paintGL();
     void resizeGL(int width, int height);
private:
     void LoadRGBMatrix();
     void LoadVertexMatrix();
     GLuint gl_rgb_tex;
     Mat _rgb,_depth;
};

#endif // GLKINECTVIEW_H
